<?php echo $this->Html->css('form'); ?>
<?php echo $this->Html->css('add_category'); ?>

<div class="form_wrapper">
	<div class="title">We're selling products of the following categories</div>
	<ul>
		<?php 
		$index = 0;
		foreach ($categories as $c) { ?>
			<li>
				<div class="category_id"><?=++$index?></div>
				<div class="category_name"><label><?=$c['Category']['name']?></label></div>
				<a href="javascript:void(0)" onclick="jqueryui_confirm(200, '<?=$this->webroot.'categories/delete/'.$c['Category']['id']?>')">Delete</a>
			</li>
		<?php } ?>
	</ul>
	<a class="button" href="<?=$this->webroot.'categories/add'?>">Add a category</a>
</div>
<div style="float:none"></div>
<div id="dialog-confirm">Are you sure you want to delete this category?</div>
